package org.hope.result;

/**
 * abstract result object
 * 
 * @author Thilanka
 *
 */
public abstract class Result
{
	
	public Result()
	{
	}
	
	public Result( int resultType )
	{
		this.resultType = resultType;
	}

	public static final int RESULT_TYPE_HOTEL = 1;
	public static final int RESULT_TYPE_CITY = 2;
	public static final int RESULT_TYPE_CRITERA = 3;
	
	private int resultType;
	
	/** results with high scores has a better match */
	private int score;
	
	/** result name and reference code */
	private String name;
	private String reference;
	
	/** result code */
	private String code;

	public int getResultType()
	{
		return resultType;
	}

	public void setResultType( int resultType )
	{
		this.resultType = resultType;
	}

	public int getScore()
	{
		return score;
	}

	public void setScore( int score )
	{
		this.score = score;
	}

	public String getReference()
	{
		return reference;
	}

	public void setReference( String reference )
	{
		this.reference = reference;
	}

	public String getCode()
	{
		return code;
	}

	public void setCode( String code )
	{
		this.code = code;
	}

	public String getName()
	{
		return name;
	}

	public void setName( String name )
	{
		this.name = name;
	}
	
	
}
